﻿/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	
    config.language = 'zh-cn';
    
    //config.height = 100; //高度
    config.skin = 'office2013';
    // 背景颜色
    config.uiColor = '#FFF';    
    config.toolbar = 'MyFull';
    //config.ToolbarStartExpanded = true;
    config.ToolbarStartExpanded = true;   // 设置工具栏默认展开/收缩
    config.ToolbarCanCollapse = true;
    config.extraPlugins += (config.extraPlugins ? ',lineheight' : 'lineheight');
    config.toolbar_MyFull =
    [  
        ['Undo', 'Redo', 'PasteFromWord'],
        ['Bold', 'Italic', 'Underline', 'Strike', 'lineheight'],
        ['NumberedList', 'BulletedList'],
        ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
        ['Link','Image', 'Flash'],
        [ 'FontSize','TextColor', 'BGColor']
        
    ];
    config.toolbar_Basic =
[
    ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', 'TextColor', 'BGColor', 'Undo', 'Redo']
];
    config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html'; //上传文件时浏览服务文件夹
    config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?Type=Images'; //上传图片时浏览服务文件夹
    config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?Type=Flash';  //上传Flash时浏览服务文件夹
    config.filebrowserUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files'; //上传文件按钮(标签) 
    config.filebrowserImageUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'; //上传图片按钮(标签) 
    config.filebrowserFlashUploadUrl = '/ckfinder/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'; //上传Flash按钮(标签)
};
